package com.shqcjd.yunweiyanoperator.ui.adapter;

import android.support.annotation.Nullable;
import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.shqcjd.yunweiyanoperator.R;
import com.shqcjd.yunweiyanoperator.model.pojo.CompanyBean;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * 用户状态
 * Created by sy on 2018/11/26.
 */

public class CompanyAdapter extends BaseQuickAdapter<CompanyBean,CompanyAdapter.ViewHolder> {


    public CompanyAdapter(@Nullable List<CompanyBean> data) {
        super(R.layout.item_company, data);
    }

    @Override
    protected void convert(ViewHolder helper, CompanyBean item) {
        helper.tvItemCompany.setText(item.name);
    }

    class ViewHolder extends BaseViewHolder {
        @BindView(R.id.tv_item_company)
        TextView tvItemCompany;
        public ViewHolder(View view) {
            super(view);
            ButterKnife.bind(this, view);
        }
    }
}
